<template>
    <div style="margin:30px;text-align: center;">
        <iframe  :src="domainurl" width="350" height="700"> </iframe>
    </div>
</template>

<script>
import { getURLById } from '../../api/index.js';
export default {
    components: {},
    data() {
        return {
            domainurl: ''
        };
    },
    methods: {
        async query() {
            let res = await getURLById();
            console.log(res);
            this.domainurl = res.data.domainurl;
            window.resizeTo(500,500)
        }
    },
    mounted() {
        this.query();
    }
};
</script>

<style lang="scss">
</style>
